﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace PhoneRater
{
    public partial class ClearCallsForm : Form
    {
        public ClearCallsForm()
        {
            InitializeComponent();
            dateTimePicker1.MaxDate = DateTime.Today;
            dateTimePicker2.MaxDate = DateTime.Today;
        }

        private void radioButton2_CheckedChanged(object sender, EventArgs e)
        {
            dateTimePicker1.Enabled = true;
            dateTimePicker2.Enabled = true;
        }

        private void ClearAllCalls()
        {
        }

        private void ClearPeriodCalls(DateTime fromdate, DateTime todate)
        {
        }


        private void btClearCalls_Click(object sender, EventArgs e)
        {
            if (radioButton1.Checked) { ClearAllCalls(); }
            else { ClearPeriodCalls(dateTimePicker1.Value, dateTimePicker2.Value); }
            Close();
        }

        private void btCancel_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void radioButton1_CheckedChanged(object sender, EventArgs e)
        {
            dateTimePicker1.Enabled = false;
            dateTimePicker2.Enabled = false;
        }

        private void dateTimePicker1_ValueChanged(object sender, EventArgs e)
        {

        }
    }
}
